package cn.modification.mall.ums.mapper;

import cn.modification.mall.pojo.ums.model.DeliveryAddress;
import cn.modification.mall.pojo.ums.vo.DeliveryAddressStandardVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeliveryAddressMapper {
    List<DeliveryAddressStandardVO> selectAddressesByUserId(Long userId);

    void insertDeliveryAddress(DeliveryAddress deliveryAddress);

    int selectCountByUserId(@Param("userId") Long userId);

    void updateAddressById(DeliveryAddress deliveryAddress);

    void deleteAddressById(Long id);
}
